package com.imooc.pan.server.modules.file.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.imooc.pan.web.serializer.Date2StringSerializer;
import com.imooc.pan.web.serializer.IdEncryptSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
@Data
public class RPanUserFileVo implements Serializable {
    @JsonSerialize(using = IdEncryptSerializer.class)
    private Long fileId;
    @JsonSerialize(using = IdEncryptSerializer.class)
    private Long parentId;
    private String filename;
    private String fileSizeDesc;
    // 文件夹表示 0非 1是
    private Integer folderFlag;
//  文件类型 1 普通文件 2 压缩文件 3 excel 4 word 5 pdf 6 txt 7 图片 8 音频 9 视频 10 ppt 11 源码文件 12 csv
    private Integer fileType;
    @JsonSerialize(using = Date2StringSerializer.class)
    private Date updateTime;
}
